package com.dfbz.demo;

import java.util.ArrayList;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo03_ArrayList {
    public static void main(String[] args) {

        ArrayList<String>  arr1 = new ArrayList<>();
        arr1.add("南京");
        arr1.add("南昌");
        arr1.add("南宁");

        arr1.get(0);
        ArrayList<String> arr2 = new ArrayList<>(arr1);
        arr2.add("南充");
        arr2.add("南平");
        System.out.println(arr2);



    }
}
